import request from '@/utils/request'

// 列表
export function getList(data, page) {
    return request({
        url: '/Machine/machine_type/'+ (page ? page : 1),
        method: 'post',
        data: data
    })
}

// 获取分页
export function getPage(data) {
    return request({
        url: '/Machine/machine_type_page',
        method: 'post',
        data: data
    })
}
// 提交
export function save(data,url) {
    return request({
        url: url,
        method: 'post',
        data: data
    })
}
// 获取一级二级分类
export function getType(data) {
    return request({
        url: '/Machine/get_type',
        method: 'post',
        data: data
    })
}

// 获取适用卡信息
export function getSuitCard(data){
    return request({
        url: '/Card_config/card_list/-1',
        method: 'post',
        data: data
    })
}